package com.aktk.battlenole;

import com.aktk.gameelements.GamePlay.Orientation;
import com.aktk.gameelements.GamePlay.SegmentType;

public class BoardCellState 
{
	//private State currentState;
	private SegmentType currentState;
	private Orientation shipOrientation;
	private boolean shot;
	public BoardCellState()
	{
		shot = false;
		//currentState = State.water;
		currentState = SegmentType.NONE;
		shipOrientation = Orientation.HORIZONTAL;
	}
	public BoardCellState Copy ()
	{
		BoardCellState copy = new BoardCellState();
		copy.setState(getState(), getOrientation());
		return copy;
	}
	//public void setState (State state)
	public void setState (SegmentType state)
	{
		currentState = state;
	}
	//public void setState (State state, Orientation orientation)
	public void setState (SegmentType state, Orientation orientation)
	{
		setState (state);
		shipOrientation = orientation;
	}
	//public void setState (State state, boolean shot)
	public void setState (SegmentType state, boolean shot)
	{
		currentState = state;
		setShot (shot);
	}
	//public void setState (State state, boolean shot, Orientation orientation)
	public void setState (SegmentType state, boolean shot, Orientation orientation)
	{
		setState (state);
		setShot (shot);
		shipOrientation = orientation;
	}
	public void setShot (boolean shot)
	{
		this.shot = shot;
	}
	public boolean getShot ()
	{
		return this.shot;
	}
	//public State getState ()
	public SegmentType getState ()
	{
		return currentState;
	}
	public Orientation getOrientation ()
	{
		return shipOrientation;
	}
}
